package com.kingint.web.admin.base.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kingint.common.unitedresult.K;
import com.kingint.mbg.bas.entity.BasRoom;
import com.kingint.mbg.bas.mapper.BasRoomMapper;
import com.kingint.web.admin.base.service.BasRoomService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 房间信息 服务实现类
 * </p>
 *
 * @author wxh
 * @since 2020-12-23
 */
@Service

public class BasRoomServiceImpl extends ServiceImpl<BasRoomMapper, BasRoom> implements BasRoomService {

    @Override
    public Object getpage(Page<BasRoom> page,BasRoom basRoom) {
        IPage<BasRoom> roomIPage =  baseMapper.getlist(page,basRoom);
        return K.ok().data(roomIPage);
    }
}
